package com.wicket.okrframework.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrframework.biz.service.MobileFrameworkService;
import com.wicket.okrframework.biz.service.dto.req.*;
import com.wicket.okrframework.biz.service.dto.res.*;
import com.wicket.okrframework.common.ro.OkrResult;
import com.wicket.okrframework.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/base/mobileFramework/")
public class MobileFrameworkController {

  @Autowired
  MobileFrameworkService mobileFrameworkService;
/**
   * D1查询空间编号查空间ID详情等(公共)
   */
    @PostMapping("querySpaceIdLookupDetailCom")
    public OkrResult<QuerySpaceIdLookupDetailComRespDto> querySpaceIdLookupDetailCom(@RequestBody @Validated QuerySpaceIdLookupDetailComReqDto reqDTO){
    return OkrResult.success(mobileFrameworkService.querySpaceIdLookupDetailCom(reqDTO));
    }
/**
   * D1查询移动端当前用户就职记录列表(公共)
   */
    @PostMapping("queryMobileCurrentUserEmploymentRecordListCom")
    public OkrResult<QueryMobileCurrentUserEmploymentRecordListComRespDto> queryMobileCurrentUserEmploymentRecordListCom(@RequestBody @Validated QueryMobileCurrentUserEmploymentRecordListComReqDto reqDTO){
    return OkrResult.success(mobileFrameworkService.queryMobileCurrentUserEmploymentRecordListCom(reqDTO));
    }
}
